package com.ruoyi.youtian.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预警设置对象 t_early_warning
 * 
 * @author ruoyi
 * @date 2022-10-12
 */
public class TEarlyWarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 场景编号 */
    @Excel(name = "场景编号")
    private Long sceneId;

    /** 预警编码 */
    @Excel(name = "预警编码")
    private String warningCode;

    /** 预警名称 */
    @Excel(name = "预警名称")
    private String warningName;

    /** 预警类型 0同比 1环比 */
    @Excel(name = "预警类型 0同比 1环比 2离散 3其他")
    private String warningType;

    /** 0启用  1停用 */
    @Excel(name = "0启用  1停用")
    private String status;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    @Excel(name = "执行天数")
    private Integer day;

    @Excel(name = "点位ID")
    private String sourceTag;

    @Excel(name = "点位名称")
    private String description;


    public TEarlyWarning() {
    }

    public TEarlyWarning( Long id, Long sceneId, String warningCode, String warningName, String warningType, String status, Date startTime, Date endTime, Integer day, String sourceTag, String description) {
        this.id = id;
        this.sceneId = sceneId;
        this.warningCode = warningCode;
        this.warningName = warningName;
        this.warningType = warningType;
        this.status = status;
        this.startTime = startTime;
        this.endTime = endTime;
        this.day = day;
        this.sourceTag = sourceTag;
        this.description = description;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return sceneId
     */
    public Long getSceneId() {
        return sceneId;
    }

    /**
     * 设置
     * @param sceneId
     */
    public void setSceneId(Long sceneId) {
        this.sceneId = sceneId;
    }

    /**
     * 获取
     * @return warningCode
     */
    public String getWarningCode() {
        return warningCode;
    }

    /**
     * 设置
     * @param warningCode
     */
    public void setWarningCode(String warningCode) {
        this.warningCode = warningCode;
    }

    /**
     * 获取
     * @return warningName
     */
    public String getWarningName() {
        return warningName;
    }

    /**
     * 设置
     * @param warningName
     */
    public void setWarningName(String warningName) {
        this.warningName = warningName;
    }

    /**
     * 获取
     * @return warningType
     */
    public String getWarningType() {
        return warningType;
    }

    /**
     * 设置
     * @param warningType
     */
    public void setWarningType(String warningType) {
        this.warningType = warningType;
    }

    /**
     * 获取
     * @return status
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 获取
     * @return startTime
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * 设置
     * @param startTime
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * 获取
     * @return endTime
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * 设置
     * @param endTime
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * 获取
     * @return day
     */
    public Integer getDay() {
        return day;
    }

    /**
     * 设置
     * @param day
     */
    public void setDay(Integer day) {
        this.day = day;
    }

    /**
     * 获取
     * @return sourceTag
     */
    public String getSourceTag() {
        return sourceTag;
    }

    /**
     * 设置
     * @param sourceTag
     */
    public void setSourceTag(String sourceTag) {
        this.sourceTag = sourceTag;
    }

    /**
     * 获取
     * @return description
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置
     * @param description
     */
    public void setDescription(String description) {
        this.description = description;
    }

    public String toString() {
        return "TEarlyWarning{serialVersionUID = " + serialVersionUID + ", id = " + id + ", sceneId = " + sceneId + ", warningCode = " + warningCode + ", warningName = " + warningName + ", warningType = " + warningType + ", status = " + status + ", startTime = " + startTime + ", endTime = " + endTime + ", day = " + day + ", sourceTag = " + sourceTag + ", description = " + description + "}";
    }
}
